package com.zpark.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 用户控制类（控制层接口）
 */
@Controller
public class UserController {

    /**
     * 模拟用户登录
     * @return
     */
    @RequestMapping("/login.do")
    public String login(){
        return "login";
    }

    /**
     * 模拟用户注册
     * @return
     */
    @RequestMapping("/reg.do")
    public ModelAndView reg(){

        ModelAndView modelAndView = new ModelAndView();

        modelAndView.setViewName("reg");

        return modelAndView;
    }
}
